package com.ddw.meedeeuh.shared.io;

import java.io.File;

public abstract class SourceFileFactory {

	public static SourceFile create(String path) {
		return new SourceFileImpl(new File(path));
	}

	public static SourceFile create(File path) {
		return new SourceFileImpl(path);
	}

	private static class SourceFileImpl implements SourceFile {

		private final File file;

		public SourceFileImpl(File file) {
			this.file = file;
		}

		@Override
		public File getInstance() {
			return this.file;
		}

	}

}
